<div class="row row-offcanvas row-offcanvas-right">

			<div class="col-xs-12 col-sm-9">
				<p class="pull-right visible-xs">
					<button type="button" class="btn btn-primary btn-xs"
						data-toggle="offcanvas">Toggle nav</button>
				</p>
				<ol class="breadcrumb">
					<li><a href="#">Home</a></li>
					<li class="active">Contact</li>
				</ol>

				<div class="panel panel-primary">
					<div class="panel-heading">
						<h3 class="panel-title">Create new blog</h3>
					</div>
					<div class="panel-body">
						<p>Please input your information to form below.</p>
						<form role="form" class="bs-example bs-example-form" method="post" action="/blogs/save<?php echo(isset($blog['Blogs']['id']) && $blog['Blogs']['id']!='') ? '/'.$blog['Blogs']['id'] :''; ?>">
							<div class="input-group">
								<span class="input-group-addon">Title:</span> <input
									type="text" name="title" class="form-control" value="<?php echo (isset($blog['Blogs']['title']) && $blog['Blogs']['title']!='') ? $blog['Blogs']['title'] : ''; ?>" placeholder="Title...">
							</div>
							<br />
							<div class="row" style="<?php echo (isset($blog['Blogs']['image']) && $blog['Blogs']['image']!='') ? 'display:block;' : 'display:none'; ?>">
							  <div class="col-xs-6 col-md-3">
							    <a href="#" class="thumbnail">
							      <img id="image" data-src="/thumb/?file=<?php echo (isset($blog['Blogs']['image']) && $blog['Blogs']['image']!='') ? $blog['Blogs']['image'] : ''; ?>&sizey=100" alt="<?php echo (isset($blog['Blogs']['title']) && $blog['Blogs']['title']!='') ? $blog['Blogs']['title'] : ''; ?>"/>
							    </a>
							  </div>
							</div>
							<div class="input-group">
									<div class="col-lg-12">
								    <div class="input-group">
								      <input class="form-control" type="text" name="image" id="path_image" class="form-control" value="<?php echo (isset($blog['Blogs']['image']) && $blog['Blogs']['image']!='') ? $blog['Blogs']['image'] : ''; ?>" placeholder="Please select one picture...">
								      <span class="input-group-btn">
								        <button class="btn btn-default" type="button" id="select_file">Upload Image</button>
								      </span>
								    </div><!-- /input-group -->
								  </div><!-- /.col-lg-6 -->
							</div>
							<br />
							<div class="input-group">
								<span class="input-group-addon">Content:</span>
								<textarea name="content" class="form-control" rows="6"><?php echo (isset($blog['Blogs']['content']) && $blog['Blogs']['content']!='') ? $blog['Blogs']['content'] : ''; ?></textarea>
							</div>
							<br />
							<div class="pull-right">
								<button type="button" class="btn btn-success">
									<span class="glyphicon glyphicon-repeat"></span> Reset
								</button>
								<button type="submit" class="btn btn-primary">
									<span class="glyphicon glyphicon-ok"></span>Submit
								</button>
							</div>
						</form>
					</div>

				</div>

			</div>
			<!--/span-->

			<div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar"
				role="navigation">
				<?php include 'includes/categories.php'; ?>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h3 class="panel-title">Panel title</h3>
					</div>
					<div class="panel-body">
						<div class="media">
							<a href="#" class="pull-left"> <img alt="64x64"
								data-src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg"
								class="media-object img-responsive"
								style="width: 64px; height: 64px;"
								src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg">
							</a>
							<div class="media-body">
								<h4 class="media-heading">Media heading</h4>
								Cras sit amet nibh libero, in gravida nulla. Nulla vel metus
								scelerisque ante sollicitudin commodo.
							</div>
						</div>
						<div class="media">
							<a href="#" class="pull-left"> <img alt="64x64"
								data-src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg"
								class="media-object img-responsive"
								style="width: 64px; height: 64px;"
								src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg">
							</a>
							<div class="media-body">
								<h4 class="media-heading">Media heading</h4>
								Cras sit amet nibh libero, in gravida nulla. Nulla vel metus
								scelerisque ante sollicitudin commodo.
							</div>
						</div>
						<div class="media">
							<a href="#" class="pull-left"> <img alt="64x64"
								data-src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg"
								class="media-object img-responsive"
								style="width: 64px; height: 64px;"
								src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg">
							</a>
							<div class="media-body">
								<h4 class="media-heading">Media heading</h4>
								Cras sit amet nibh libero, in gravida nulla. Nulla vel metus
								scelerisque ante sollicitudin commodo.
							</div>
						</div>
						<div class="media">
							<a href="#" class="pull-left"> <img alt="64x64"
								data-src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg"
								class="media-object img-responsive"
								style="width: 64px; height: 64px;"
								src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg">
							</a>
							<div class="media-body">
								<h4 class="media-heading">Media heading</h4>
								Cras sit amet nibh libero, in gravida nulla. Nulla vel metus
								scelerisque ante sollicitudin commodo.
							</div>
						</div>
						<div class="media">
							<a href="#" class="pull-left"> <img alt="64x64"
								data-src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg"
								class="media-object img-responsive"
								style="width: 64px; height: 64px;"
								src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg">
							</a>
							<div class="media-body">
								<h4 class="media-heading">Media heading</h4>
								Cras sit amet nibh libero, in gravida nulla. Nulla vel metus
								scelerisque ante sollicitudin commodo.
							</div>
						</div>

					</div>
				</div>

				<?php include 'includes/fanpage_facebook.php'; ?>
			</div>

			<!--/span-->
		</div>
		<!--/row-->